package cn.itcast.scala.course08

import java.io.File

/**
  * 隐式转换通过切面封装
  * create by zhangtian on 2019/1/9
  */
object ImplicitAspect {
  implicit def man2Superman(man: Man) : Superman = new Superman(man.name)

  implicit def file2RichFile(file: File) : RichFile = new RichFile(file)
}
